package myPack.GMAO.Entity;

import java.util.Date;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity
@DiscriminatorValue("SM")
public class SM extends Acteur 
{
	private static final long serialVersionUID = 1L;
	private String nomD;
	private String sarl;
	private String tellD;
	private String nomR;
	private String tellR;
	private String web;
	private Date dateC;
	private String fich;
	    
	@OneToMany(mappedBy="mSM")
	private List<Contrat> contrat;
	
	public SM() {
		super();
		// TODO Auto-generated constructor stub
	}

	public SM(int mat, String nom, String adress, String tell, String email,
			Date dateE) {
		super(mat, nom, adress, tell, email, dateE);
		// TODO Auto-generated constructor stub
	}

	public SM(int mat, String nom, String adress, String tell, String email,
			Date dateE, String nomD, String sarl, String tellD, String nomR,
			String tellR, String web, Date dateC, String fich,
			List<Contrat> contrat) {
		super(mat, nom, adress, tell, email, dateE);
		this.nomD = nomD;
		this.sarl = sarl;
		this.tellD = tellD;
		this.nomR = nomR;
		this.tellR = tellR;
		this.web = web;
		this.dateC = dateC;
		this.fich = fich;
		this.contrat = contrat;
	}

	public String getNomD() {
		return nomD;
	}

	public void setNomD(String nomD) {
		this.nomD = nomD;
	}

	public String getTellD() {
		return tellD;
	}

	public void setTellD(String tellD) {
		this.tellD = tellD;
	}

	public String getNomR() {
		return nomR;
	}

	public void setNomR(String nomR) {
		this.nomR = nomR;
	}

	public String getTellR() {
		return tellR;
	}

	public void setTellR(String tellR) {
		this.tellR = tellR;
	}

	public String getWeb() {
		return web;
	}

	public void setWeb(String web) {
		this.web = web;
	}

	public Date getDateC() {
		return dateC;
	}

	public void setDateC(Date dateC) {
		this.dateC = dateC;
	}

	public String getFich() {
		return fich;
	}

	public void setFich(String fich) {
		this.fich = fich;
	}

	public List<Contrat> getContrat() {
		return contrat;
	}

	public void setContrat(List<Contrat> contrat) {
		this.contrat = contrat;
	}

	public String getSarl() {
		return sarl;
	}

	public void setSarl(String sarl) {
		this.sarl = sarl;
	}
	@Override
	public String toString() 
	{
		return super.getNom();
	}
	
}